﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200042B RID: 1067
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnableRogueTalentCsReq : IMessage<EnableRogueTalentCsReq>, IMessage, IEquatable<EnableRogueTalentCsReq>, IDeepCloneable<EnableRogueTalentCsReq>, IBufferMessage
	{
		// Token: 0x17000DBF RID: 3519
		// (get) Token: 0x06002FF2 RID: 12274 RVA: 0x000845B0 File Offset: 0x000827B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnableRogueTalentCsReq> Parser
		{
			get
			{
				return EnableRogueTalentCsReq._parser;
			}
		}

		// Token: 0x17000DC0 RID: 3520
		// (get) Token: 0x06002FF3 RID: 12275 RVA: 0x000845B7 File Offset: 0x000827B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnableRogueTalentCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000DC1 RID: 3521
		// (get) Token: 0x06002FF4 RID: 12276 RVA: 0x000845C9 File Offset: 0x000827C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnableRogueTalentCsReq.Descriptor;
			}
		}

		// Token: 0x06002FF5 RID: 12277 RVA: 0x000845D0 File Offset: 0x000827D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnableRogueTalentCsReq()
		{
		}

		// Token: 0x06002FF6 RID: 12278 RVA: 0x000845D8 File Offset: 0x000827D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnableRogueTalentCsReq(EnableRogueTalentCsReq other) : this()
		{
			this.talentId_ = other.talentId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002FF7 RID: 12279 RVA: 0x000845FD File Offset: 0x000827FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnableRogueTalentCsReq Clone()
		{
			return new EnableRogueTalentCsReq(this);
		}

		// Token: 0x17000DC2 RID: 3522
		// (get) Token: 0x06002FF8 RID: 12280 RVA: 0x00084605 File Offset: 0x00082805
		// (set) Token: 0x06002FF9 RID: 12281 RVA: 0x0008460D File Offset: 0x0008280D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TalentId
		{
			get
			{
				return this.talentId_;
			}
			set
			{
				this.talentId_ = value;
			}
		}

		// Token: 0x06002FFA RID: 12282 RVA: 0x00084616 File Offset: 0x00082816
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnableRogueTalentCsReq);
		}

		// Token: 0x06002FFB RID: 12283 RVA: 0x00084624 File Offset: 0x00082824
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnableRogueTalentCsReq other)
		{
			return other != null && (other == this || (this.TalentId == other.TalentId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002FFC RID: 12284 RVA: 0x00084654 File Offset: 0x00082854
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.TalentId != 0U)
			{
				num ^= this.TalentId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002FFD RID: 12285 RVA: 0x00084693 File Offset: 0x00082893
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002FFE RID: 12286 RVA: 0x0008469B File Offset: 0x0008289B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002FFF RID: 12287 RVA: 0x000846A4 File Offset: 0x000828A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.TalentId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.TalentId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003000 RID: 12288 RVA: 0x000846D8 File Offset: 0x000828D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.TalentId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TalentId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003001 RID: 12289 RVA: 0x00084716 File Offset: 0x00082916
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnableRogueTalentCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.TalentId != 0U)
			{
				this.TalentId = other.TalentId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003002 RID: 12290 RVA: 0x00084747 File Offset: 0x00082947
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003003 RID: 12291 RVA: 0x00084750 File Offset: 0x00082950
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.TalentId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040012F2 RID: 4850
		private static readonly MessageParser<EnableRogueTalentCsReq> _parser = new MessageParser<EnableRogueTalentCsReq>(() => new EnableRogueTalentCsReq());

		// Token: 0x040012F3 RID: 4851
		private UnknownFieldSet _unknownFields;

		// Token: 0x040012F4 RID: 4852
		public const int TalentIdFieldNumber = 8;

		// Token: 0x040012F5 RID: 4853
		private uint talentId_;
	}
}
